<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="http://127.0.0.1/hdphp3.0/resource/css/wangbiao.css">
	<link rel="stylesheet" href="http://127.0.0.1/hdphp3.0/resource/css/joinCart.css">
	<script type="text/javascript" src="http://127.0.0.1/hdphp3.0/resource/js/jquery.1.4.2-min.js"></script>
	<script type="text/javascript" src="http://127.0.0.1/hdphp3.0/resource/js/jquery.min.js"></script>
	<script type="text/javascript" src="http://127.0.0.1/hdphp3.0/resource/js/js.js"></script>
</head>
<body style="margin-top: -120px;">
<div class="hd mct">
	<div class="tnw">
		<div class="tn cl">
			<div class="tnr fr">
				<ul class="ul">
					<li  class="tu">
						<a href="http://127.0.0.1/hdphp3.0/index.php?s=home/joinCart/index">去购物车结算</a>
					</li>
					<li class="tu">
						<a href="http://127.0.0.1/hdphp3.0/index.php?s=home/personal/index">我的订单</a>
						<a href="http://127.0.0.1/hdphp3.0/index.php?s=home/personal/index">会员中心</a>
					</li>
					<li class="tu">
						<span>
						全国客服电话：
							<span class="em">400-883-2688</span>
						</span>
					</li>
					<li class="eol" id="member_link">
													欢迎 <span style="color:red">admin</span> 回来！
							<a href="http://127.0.0.1/hdphp3.0/index.php?s=home/logoin/out" class="btn btn-danger" >退出</a>
											</li>
				</ul>
			</div>
		</div>
	</div>
	
<div class="lgw">
		<div class="lg cl">
			<div class="lgl fl">
				<a href="">
					<img src="<?php echo __ROOT__?>/resource/img/logo-ico.jpg" alt="">
				</a>
				<span class="logoname">
					<img src="<?php echo __ROOT__?>/resource/img/logoname.jpg" alt="">
				</span>
			</div>
			<div class="lgr fr">
				<ul>
					<li class="fol vtd">
						<h2 class="h_1">
							<span>选购商品</span>
						</h2>
					</li>
					<li class="on">
						<h2 class="h_2">
							<span>提交订单</span>
						</h2>
					</li>
					<li >
						<h2 class="h_3">
							<span>支付订单</span>
						</h2>
					</li >
					<li class="eol_p">
						<h2 class="h_4">
							<span>等待签收</span>
						</h2>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<div class="ar arct arcrt">
	<div class="arc mct">
		<div class="arci">
			<div class="bx bx1">
				<div class="bxt">
					<h2 >购物车</h2>
				</div>
				<div class="bxc">
					<div class="bxci">
						<div class="gdfw fw mblk">
							<div class="glw">
								<table id="goods_list" class="goods cgoods">
										<tbody>
										<tr class="cl hli fov">
											<th class="ghw">商品</th>
											<th class="gphw">单价</th>
											<th class="gnhw">数量</th>
											<th >小计</th>
											<th class="gohw">操作</th>
										</tr>
										<?php if(!empty($_SESSION['cart']['goods'])){ foreach ($_SESSION['cart']['goods'] as $k=>$v){?>
										<tr class="cl gilw hli checked" attr="<?php echo $k?>">
											<td class="gw">
												<dl class="cl">
													<dt>
<!--														<span><input type="checkbox" name="" id=""></span>-->
														<a href=""><img src="<?php echo $v['pic']?>" alt=""></a>
													</dt>
													<dd style="margin-top: 17px; display: block;">
														<p class="tt"><a href=""><?php echo $v['name']?></a></p>
														<p class="ct"><span style="color: orangered;font-size: 12px;"><?php echo $v['options']?></span></p>
														<p class="ct">附送说明书，全球联保卡</p>
													</dd>
												</dl>
											</td>
											<td class="gpw">
												<p class="gp">
													￥<span class="orders_price" num="" ><?php echo $v['price']?></span>.00
												</p>
											</td>
											<td class="gp">
												<p   class="kp">
													<span class="oprt now strip" style="position: relative; top: 20px; left: 27px; display: block; width: 21px; height: 21px;cursor: pointer;">-</span>
													<input type="text" name="" id="num_1" class="num ti" value="<?php echo $v['num']?>" style="text-align: center;">
													<span  class="oprt now plus" style="position: relative; top: -20px; left: 76px; width: 21px; height: 21px; display: block;cursor: pointer;">+</span>
												</p>
											</td>
											<td class="gpw">
												<p class="gp">
													￥<span class="orders_price store-price" ><?php echo $v['total']?></span>.00
												</p>
											</td>
											<td class="gow">
												<p>
													<a href="" class="oprt clt">收藏</a>
													<span class="sep"></span>
													<a href="JavaScript:;" class="oprt del" kk="<?php echo $k?>">删除</a>
												</p>
											</td>
										</tr>
										<?php }}?>
									</tbody>
								</table>

							</div>
						</div>
						<?php if($_SESSION['cart']['goods']){?>
							<div style="display: none" >
								<span>没有商品，<a href="">请购物</a></span>
							</div>
						<?php }else{?>
							<div style="display: block" >
								<span>没有商品，<a href="">请购物</a></span>
							</div>

						<?php } ?>



						<script>
							$(function() {
								$('.plus').click(function () {
									var kk = $(this).parents('.checked').attr('attr');
									var _this = $(this);
									$.ajax({
										type: 'post',
										url: "<?php echo u('addNum')?>",
										data: {kk: kk},
										dataType: 'json',
										success: function (phpData) {
											_this.parents('.gp').siblings('.gpw').find('.store-price').text(phpData.price);
										   _this.parents('.kp').find('.num').val(phpData.num);
											$('.osp').find('.orders_all').text(phpData.total);
										}
									});
								})
								$('.strip').click(function () {
									var vv = $(this).parents('.gilw').attr('attr');
									var _this = $(this);
									$.ajax({
										type: 'post',
										url: "<?php echo u('stripNum')?>",
										data: {vv: vv},
										dataType: 'json',
										success: function (phpData) {
											_this.parents('.gp').siblings('.gpw').find('.store-price').text(phpData.price);
											_this.parents('.kp').find('.num').val(phpData.num);
											$('.osp').find('.orders_all').text(phpData.total);
										}
									});
								})
							})
						</script>
						<script>
							$(function(){
								$('.del').click(function(){
									var kk = $(this).attr('kk');
									if(confirm('确定删除吗??!!')){
										$(this).parents('.checked').remove();
										$.ajax({
											type:'post',
											url:"<?php echo u('del')?>",
											data:{kk:kk},
											dataType:'json',
											success:function(phpData){
												$('.osp').find('.orders_all').text(phpData.newTotal);
											}
										})
									}
								})
							})
						</script>
						<div class="smaw">
							<p class="ospw">
								<span class="cpntw h" id="cost_points_wrap">
									需消耗积分：<span clacsss="em" id="cost_points">0</span>
								</span>
								商品总额：
								<span class="osp">
									￥<span id="order_amount" class="orders_all"><?php echo Cart::getTotalPrice(); ?></span>.00
								</span>
							</p>
							<p class="chk cl">
								<span >
									<label>你还可以</label>
									<a href="">继续购物</a>
								</span>
								<a href="<?php echo u('order.index')?>"><input type="button" value="立即结算" name="checkout" class="si bt"></a>
							</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!--正文结束-->

	<div class="tdc-group c_1">
		<a href="JavaScript:;">
			<div class="cleft">
				<img src="http://127.0.0.1/hdphp3.0/resource/img/143234662366691.png" alt="">
			</div>
			<div class="cright">
				<div class="t">万表商城客户端</div>
				<div class="st">手机支付再减30元</div>
			</div>
		</a>
		<a href="JavaScript:;">
			<div class="cleft">
				<img src="http://127.0.0.1/hdphp3.0/resource/img/146183215705134.png" alt="">
			</div>
			<div class="cright">
				<div class="t">万表商城客户端</div>
				<div class="st">手机支付再减30元</div>
			</div>
		</a>
		<a href="JavaScript:;">
			<div class="cleft">
				<img src="http://127.0.0.1/hdphp3.0/resource/img/143234662480218.png" alt="">
			</div>
			<div class="cright">
				<div class="t">万表商城客户端</div>
				<div class="st">手机支付再减30元</div>
			</div>
		</a>
		<a href="JavaScript:;">
			<div class="cleft">
				<img src="http://127.0.0.1/hdphp3.0/resource/img/143234662463629.png" alt="">
			</div>
			<div class="cright">
				<div class="t">万表商城客户端</div>
				<div class="st">手机支付再减30元</div>
			</div>
		</a>
	</div>
	<div class="foot_link c_2">
		<div class="font_link_1">
			<a href="JavaScript:;">
				<span class="zp1"></span>正品保障
			</a>
			<a href="JavaScript:;">
				<span class="zp2"></span>免息分期
			</a>
			<a href="JavaScript:;">
				<span class="zp3"></span>全球联保
			</a>
			<a href="JavaScript:;">
				<span class="zp4"></span>假一赔三
			</a>
			<a href="JavaScript:;">
				<span class="zp5"></span>终身售后
			</a>
		</div>
	</div>
	<div class="b-inst c_3">
		<div class="wrap">
			<div class="l">
				<p class="p1">客服电话</p>
				<p class="p2">400-883-2688</p>
				<p class="p3">外呼号码 020-83931899</p>
				<p class="p4">
					<a href="javascript:;">在线咨询</a>
				</p>
			</div>
			<div class="r">
				<dl>
					<dt>新手</dt>
					<dd>
						<a href="JavaScript:;">注册新会员</a>
						<a href="JavaScript:;">如何订购</a>
						<a href="JavaScript:;">正品保障</a>
						<a href="JavaScript:;">常见手表问题</a>
					</dd>
				</dl>
				<dl>
					<dt>支付</dt>
					<dd>
						<a href="JavaScript:;">支付方式</a>
						<a href="JavaScript:;">分期付款</a>
						<a href="JavaScript:;">发票说明</a>
						<a href="JavaScript:;">支付问题</a>
					</dd>
				</dl>
				<dl>
					<dt>配送</dt>
					<dd>
						<a href="JavaScript:;">包裹签收</a>
						<a href="JavaScript:;">配送方式</a>
						<a href="JavaScript:;">配送说明</a>
						<a href="JavaScript:;">自提流程</a>
					</dd>
				</dl>
				<dl>
					<dt>保障</dt>
					<dd>
						<a href="JavaScript:;">服务承诺</a>
						<a href="JavaScript:;">价格保护</a>
						<a href="JavaScript:;">七天退换说明</a>
						<a href="JavaScript:;">保修说明</a>
					</dd>
				</dl>
				<dl>
					<dt>帮助</dt>
					<dd>
						<a href="JavaScript:;">商务合作</a>
						<a href="JavaScript:;">分销加盟</a>
						<a href="JavaScript:;">严正声明</a>
						<a href="JavaScript:;">人才招聘</a>
					</dd>
				</dl>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="b-info c_4"id="b-info ">
		<div class="b-coo">
			<div class="wrap">
				<a href="JavaScript:;">万表网app</a>
				<a href="JavaScript:;">大表哥app</a>
				<a href="JavaScript:;">网站联盟</a>
				<a href="JavaScript:;">新款手表</a>
				<a href="JavaScript:;">热销</a>
				<a href="JavaScript:;">万表天猫旗舰店</a>
				<a href="JavaScript:;">万表京东旗舰店</a>
				<a href="JavaScript:;">手表资讯</a><a href="">品牌大全</a>
				<a href="JavaScript:;">关于我们</a>
				<span class="b-cml"id="b-cml">&gt;</span>
			</div>
		</div>
		<div class="b-corp">
			<p>万表网名表商城 版权所有 2008-2016&nbsp;<a href="JavaScript:;">ICP备案证书号:粤ICP备09108738号</a>&nbsp;网监备案:4401060103141</p>
			<p>广州市万表科技股份有限公司 地址:广州市天河区珠江新城临江大道507号</p>
			<p>Copyright 2008-2016 WWW.WBIAO.CN.LTD ALL RIGHT RESERVED.</p>
		</div>
		<div class="b-ico"id="b-ico"></div>
		<div class="b-frli">
			<div class="wrap">
				<span>友情链接:</span>
				<a href="JavaScript:;">联系QQ3268217127</a>
				<a href="JavaScript:;">折800网</a>
				<a href="JavaScript:;">名鞋库</a>
				<a href="JavaScript:;">万表世界</a>
				<a href="JavaScript:;">手表名表</a>
				<a href="JavaScript:;">衣联网</a>
				<a href="JavaScript:;">华为官网</a>
				<a href="JavaScript:;">乐视手机</a>
				<a href="JavaScript:;">音乐巴士</a>
				<a href="JavaScript:;">畅途网</a>
				<a href="JavaScript:;">拍鞋网</a>
				<a href="JavaScript:;">电子商务</a>
				<a href="JavaScript:;">家具网</a>
				<a href="JavaScript:;">太平洋家居网产品库</a>
				<a href="JavaScript:;">聚美优品优惠券</a>
				<a href="JavaScript:;">股城网</a>
				<a href="JavaScript:;">酷狗音乐播放器</a>
			</div>
		</div>
	</div>
</body>
</html>


